package com.cn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class TestRequest {
    @RequestMapping("/test01")
    public String test01(String username,String pas){
        System.out.println("用户名： "+username);
        System.out.println("密码： "+pas);
        return "TestRequest";
    }

    @RequestMapping("/test02")
    public String test02(@RequestParam("user") String username){
        System.out.println(username);
        return "TestRequest";
    }
}
